package com.mzj.saas.mservice.announcement.repository;

import com.mzj.saas.mservice.announcement.entity.AnnouncementUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface AnnouncementUserRepository extends PagingAndSortingRepository<AnnouncementUser, Long>, JpaSpecificationExecutor<AnnouncementUser> {
    AnnouncementUser findByAnnouncementIdAndUserId(Long announcementId,String userId);

    List<AnnouncementUser> findByUserIdAndViewStatus(String userId,Integer viewStatus);



}
